set(kcmwormhole_SRCS main.cpp backendselection.cpp snapshoteditor.cpp snapshoteditortab.cpp snapshotlistmodel.cpp)
kde4_add_ui_files(kcmwormhole_SRCS backendselection.ui snapshoteditor.ui snapshoteditortab.ui)

kde4_add_plugin(kcm_wormhole ${kcmwormhole_SRCS})
target_link_libraries(kcm_wormhole ${KDE4_PHONON_LIBS} ${KDE4_KUTILS_LIBS}
   ${KDE4_KIO_LIBS} libwormhole)

install(TARGETS kcm_wormhole  DESTINATION ${PLUGIN_INSTALL_DIR} )

########### install files ###############
install( FILES kcm_wormhole.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )
